<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>react 体验</title>
    <script src="https://unpkg.com/react@16/umd/react.development.js"></script>
    <script src="https://unpkg.com/react-dom@16/umd/react-dom.development.js"></script>
    <script src="https://unpkg.com/babel-standalone@6.26.0/babel.js"></script>
</head>
<body>
    <div id="app">

    </div>

    <script type="text/babel">
    // type="text/babel" ：浏览器不会解析这里的代码，会让引入的babeljs解析
        ReactDOM.render(<h1>hello world</h1>, document.getElementById('app'));
    </script>
</body>
</html>